<template xmlns:v-bind="http://www.w3.org/1999/xhtml">
    <div class="mbig">
      <a v-bind:href="'#/content/'+item.id" target="_blank" v-bind:title="item.title">
        <img v-bind:src="imageBase" v-bind:alt="item.title">
        <div class="section-show-name">{{item.title}}</div>
      </a>
    </div>
</template>

<script>
  export default {
    props: ["item"],
    data() {
      return {
        imageBase:''
      }
    },
    beforeMount() {
      this.$axios({
        method: 'get',
        url: `/api/image/${this.item.poster}`,
      }).then((res) => {
        this.imageBase = res.data.imageBase;
      })
    }
  };
</script>

<style scoped>
  .mbig,
  .mbig > a >img {
    width: 100%;
    height: 100%;
    background-size:100% 100%;
    border-radius: 5px;
    outline-style: none;
  }
  .section-show-name {
    position: absolute;
    width: 100%;
    display: block;
    bottom: 0;
    left: 0;
    right: 0;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 20px;
    padding: 10px;
    background-image: linear-gradient(to bottom,rgba(254,107,117,0),rgba(254,107,117,1));
  }
</style>
